package kamikaze.service.admin;

import kamikaze.support.HttpMethod;
import kamikaze.support.Service;
import kamikaze.support.ServiceConfig;
import kamikaze.support.ServiceContext;

@ServiceConfig(path = "admin/home", method = HttpMethod.GET)
public class AdminHomePage implements Service {

	@Override
	public String serve(ServiceContext ctx) throws Exception {
		ctx.getRequest().setAttribute("admin",
				ctx.getUserSession().asAdmin());

		return "admin/home";
	}
}
